package org.example.strategy;

import org.example.strategy.improve.GoodBehavior;
import org.example.strategy.improve.NoFlyBehavior;

/**
 * @author wangbin
 * @date 2024/4/20
 * @vesion 1.0
 */
public class BeJingDuck extends Duck{


    public BeJingDuck() {
        flyBehavior=new NoFlyBehavior();
    }
    @Override
    public void display() {
        System.out.println("北京呀");

    }

    @Override
    public void quack() {
        System.out.println("北京呀---不会飞");
    }
}

